package com.bsoft.gol.hcs.satisfaction.dao;

import org.atag.dao.ext.HibernateExtendDAO;
import com.bsoft.gol.hcs.satisfaction.entity.SatisfactionProduceRecord;

/**
 * @author tongtp
 * @version v0.1
 * @Package satisfaction.dao
 * @className SatisfactionProduceRecordDAO
 * @description
 * @create 2020-09-12 17:04
 **/
public abstract class SatisfactionProduceRecordDAO extends HibernateExtendDAO<SatisfactionProduceRecord> {


    public SatisfactionProduceRecord getByRouteDetailId(Long routeDetailId, String businessType, String businessId) {
        SatisfactionProduceRecord query = new SatisfactionProduceRecord();
        query.setRouteDetailId(routeDetailId);
        query.setBusinessType(businessType);
        query.setBusinessId(businessId);
        return this.selectOneWithLimit(query, "");
    }
}
